package Demo8;

import java.util.ArrayList;

public class ArraryTest {
    public static void main(String[] args) {
        ArrayList<String> arrary=new ArrayList<>();
        arrary.add("xiaow");
        arrary.add("ggsg");
        arrary.add("afw");
        for(int i=0;i<arrary.size();i++){
            System.out.println(arrary.get(i)+'\t');
        }
        for(String string:arrary){
            System.out.print(string+'\t');
        }

    }
}
